<script setup>
  import {
    onLaunch,
    onShow,
    onHide
  } from '@dcloudio/uni-app'

  import userstore from '@/store/userinfo.js'

  const {
    queryUser
  } = userstore()

  onLaunch(() => {
    console.log('应用程序启动')

    queryUser((islogin) => {
      console.log('登录状态：', islogin)
    })
  })

  onShow(() => {
    console.log('应用程序显示')
  })

  onHide(() => {
    console.log('应用程序隐藏')
  })



  // export default {
  // 	onLaunch: function() {
  // 		console.log('App Launch')
  // 	},
  // 	onShow: function() {
  // 		console.log('App Show')
  // 	},
  // 	onHide: function() {
  // 		console.log('App Hide')
  // 	}
  // }
</script>

<style>
  uni-view {
    word-break: break-all;
  }
</style>